//
//  strxor.c
//

#include "xor.h"
#include <stdlib.h>

void xor (char *data1, char *data2, char *buff, size_t len) {
    char temp;
    for (size_t i = 0; i < len; i++) {
        temp = (data1[i] ^ data2[i]);
        buff[i] = temp;
    }
}
